package me.sdevil507.supports.httplog;

import lombok.Builder;
import lombok.Data;

import java.nio.charset.Charset;
import java.util.List;
import java.util.Map;

/**
 * 返回信息
 *
 * @author sdevil507
 * created on 2020/3/27
 */
@Data
@Builder
public class HttpResponseLogInfo {

    /**
     * 请求耗时
     */
    private long duration;

    /**
     * 协议
     */
    private String protocol;

    /**
     * 状态码
     */
    private int status;

    /**
     * charset
     */
    private Charset charset;

    /**
     * 请求头
     */
    private Map<String, List<String>> headers;

    /**
     * 请求体
     */
    private Object body;
}
